package com.qiall.gateway.service;

import com.qiall.common.exception.BusinessResult;
import com.qiall.oms.ability.SetDubboClientClassService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Component;

/**
 * @author 吴金辉
 */
@DubboService
@Component
public class SetDubboClientClassServiceImpl implements SetDubboClientClassService {

    @Override
    public BusinessResult<Void> removeDubboServiveClientClass(String classNme) {
        DubboClassLoaderClassSingleton.getInstance().remove(classNme);
        return BusinessResult.success(null);
    }
}
